import request from "@/utils/request";

// 查询合同信息里程碑列表
export function listBsContractInfoMilestone(query) {
  return request({
    url: "/cm/bsContractInfoMilestone/list",
    method: "get",
    params: query
  });
}

// 查询合同信息里程碑列表
export function getMilestoneList(params) {
  return request({
    url: "/cm/bsContractInfoMilestone/listData",
    method: "get",
    params: params
  });
}

// 查询合同信息里程碑详细
export function getBsContractInfoMilestone(id) {
  return request({
    url: "/cm/bsContractInfoMilestone/" + id,
    method: "get"
  });
}

// 新增合同信息里程碑
export function addBsContractInfoMilestone(data) {
  return request({
    url: "/cm/bsContractInfoMilestone",
    method: "post",
    data: data
  });
}

// 修改合同信息里程碑
export function updateBsContractInfoMilestone(data) {
  return request({
    url: "/cm/bsContractInfoMilestone",
    method: "put",
    data: data
  });
}

// 删除合同信息里程碑
export function delBsContractInfoMilestone(id) {
  return request({
    url: "/cm/bsContractInfoMilestone/" + id,
    method: "delete"
  });
}
